package com.tiancheng.trade.commom.web.model;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

/**
 * @Author: likailun
 * @Description:
 * @Date: create in 2024/10/21 17:00
 */
public class SubjectProfile implements Serializable {
    private Long id;
    private Map<String, Object> attributes = new HashMap();
    private String clientName;

    public SubjectProfile() {
    }

    public void addAttribute(String key, Object value) {
        if (this.attributes == null) {
            this.attributes = new HashMap();
        }

        this.attributes.put(key, value);
    }

    public Object getAttribute(String key) {
        if (this.attributes == null) {
            this.attributes = new HashMap();
        }
        return this.attributes.get(key);
    }

    public void setAttributes(Map<String, Object> attributes) {
        if (attributes != null) {
            this.attributes = attributes;
        }

    }

    public Map<String, Object> getAttributes() {
        if (this.attributes == null) {
            this.attributes = new HashMap();
        }

        return this.attributes;
    }

    public Long getId() {
        return this.id;
    }

    public String getClientName() {
        return this.clientName;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public void setClientName(String clientName) {
        this.clientName = clientName;
    }
}
